package com.cqeec.myblog.junitTest;


import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;

import org.junit.jupiter.api.Test;

import com.cqeec.myblog.util.DbUtil;

class DBTest {

	@Test
	void test() throws ClassNotFoundException, SQLException {
		
		Connection con=DbUtil.getDbConnection();
		PreparedStatement ps=con.prepareStatement("select * from Blogger");
		System.out.println(ps.executeQuery().next());
	}

}
